{$t(amount < 0 ? "payments.sent" : "payments.received")}
{#if p.with}
{/if}
{#if p.type === types.fund}
{/if}
{$t("payments.amount")}
{f(fiat(a, rate), currency)}
⚡️{s(a)}
{#if tip}
{$t("invoice.tip")}
{f(fiat(tip, rate), currency)}
({Math.round((tip * 100) / Math.abs(a))}%)
⚡️{s(tip)}
Total
{f(fiat(a + (tip || 0), rate), currency)}
⚡️{`${s(a + (tip || 0))}`}
{/if}
Network fee
{f(fiat(fee, rate), currency)}
⚡️{`${s(fee)}`}
{#if ourfee > 0}
Platform fee
{f(fiat(ourfee, rate), currency)}
⚡️{`${s(ourfee)}`}
{/if}
Date
{format(new Date(created), "h:mmaaa")}
{format(new Date(created), "MMM d, yyyy")}
{#if type === "bitcoin" || type === "liquid"}
{/if}
{#if amount < 0 && !confirmed}
{/if}
{#if user.hasprinter}
{:else}
{/if}